﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TrainSearchControl.ascx.cs" Inherits="Web.Views.Controls.TrainSearchControl" %>
<script language="javascript">
    //js获取url参数的function
    function request() {
        var url = unescape(location.href);
    
        var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
        var paraObj = {}
        for (i = 0; j = paraString[i]; i++) {
            paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=") + 1, j.length);
            if (j.substring(0, j.indexOf("=")).toLowerCase() == "startstation") {
                document.getElementById("txt_StartStation").value = j.substring(j.indexOf("=") + 1, j.length)
            }
           if (j.substring(0, j.indexOf("=")).toLowerCase() == "endstation") {
               document.getElementById("txt_EndStation").value = j.substring(j.indexOf("=") + 1, j.length)
           }
           if (j.substring(0, j.indexOf("=")).toLowerCase() == "trainnumber") {
               document.getElementById("txt_TrainNumber").value = j.substring(j.indexOf("=") + 1, j.length)
           }
           
        }
        
        
//        var returnValue = paraObj[paras.toLowerCase()];
//       if (typeof (returnValue) == "undefined") {
//            return "";
//        } else {
//            return returnValue;
//           }
//        alert(returnValue);
    }
    window.onload = function() {
        request();
    }

</script>
<div class="box b_bg">
	<ul>
		<li><img src="../../Content/images/b_left.jpg" width="86" height="73" /></li>
		<li style="width:490px; margin-left:10px;">
			<table cellpadding="0" cellspacing="0" width="490">
				<tr class="img1">
					<td height="36" width="158"><input  title="请输入车次"  maxlength="20" id="txt_TrainNumber"  style="height:25px" type="text" /></td>
					<td><img src="../../Content/images/d.jpg"  alt="动车组"  class="charMark" onMouseOver="this.src='../../Content/images/dd.gif'" onMouseOut="this.src='../../Content/images/d.jpg'" /></td>
					<td><img src="../../Content/images/z.jpg" alt="直达列车"  class="charMark"  onMouseOver="this.src='../../Content/images/zz.gif'" onMouseOut="this.src='../../Content/images/z.jpg'" /></td>
					<td><img src="../../Content/images/t.jpg" alt="特快列车" class="charMark"  onMouseOver="this.src='../../Content/images/tt.gif'" onMouseOut="this.src='../../Content/images/t.jpg'" /></td>
					<td><img src="../../Content/images/0.jpg" class="charMark"   onMouseOver="this.src='../../Content/images/00.gif'" onMouseOut="this.src='../../Content/images/0.jpg'" /></td>
					<td><img src="../../Content/images/1.jpg" class="charMark"  onMouseOver="this.src='../../Content/images/11.gif'" onMouseOut="this.src='../../Content/images/1.jpg'" /></td>
					<td><img src="../../Content/images/2.jpg" class="charMark"  onMouseOver="this.src='../../Content/images/22.gif'" onMouseOut="this.src='../../Content/images/2.jpg'" /></td>
					<td><img src="../../Content/images/3.jpg" class="charMark"  onMouseOver="this.src='../../Content/images/33.gif'" onMouseOut="this.src='../../Content/images/3.jpg'" /></td>
					<td><img src="../../Content/images/4.jpg" class="charMark"  onMouseOver="this.src='../../Content/images/44.gif'" onMouseOut="this.src='../../Content/images/4.jpg'" /></td>
					</td>
				</tr>
				<tr>
					<td height="36"><img src="../../Content/images/btn1.jpg" width="72" height="28"  onclick="CommTrainNumber(false)"  style="cursor:pointer"/><img src="../../Content/images/btn2-76.jpg" width="72" height="28" onclick="CommTrainNumber(true)" style="margin-left:3px; cursor:pointer" /></td>
					<td><img src="../../Content/images/k.jpg" alt="快速列车" class="charMark" style="cursor:pointer" onMouseOver="this.src='../../Content/images/kk.gif'" onMouseOut="this.src='../../Content/images/k.jpg'" /></td>
					<td><img src="../../Content/images/n.jpg" alt="管内快速" class="charMark"  onMouseOver="this.src='../../Content/images/nn.gif'" onMouseOut="this.src='../../Content/images/n.jpg'" /></td>
					<td><img src="../../Content/images/l.jpg" alt="临时列车" class="charMark"   onMouseOver="this.src='../../Content/images/ll.gif'" onMouseOut="this.src='../../Content/images/l.jpg'" /></td>
					<td><img src="../../Content/images/5.jpg" class="charMark"  onMouseOver="this.src='../../Content/images/55.gif'" onMouseOut="this.src='../../Content/images/5.jpg'" /></td>
					<td><img src="../../Content/images/6.jpg" class="charMark"  onMouseOver="this.src='../../Content/images/66.gif'" onMouseOut="this.src='../../Content/images/6.jpg'" /></td>
					<td><img src="../../Content/images/7.jpg" class="charMark"  onMouseOver="this.src='../../Content/images/77.gif'" onMouseOut="this.src='../../Content/images/7.jpg'" /></td>
					<td><img src="../../Content/images/8.jpg" class="charMark"  onMouseOver="this.src='../../Content/images/88.gif'" onMouseOut="this.src='../../Content/images/8.jpg'" /></td>
					<td><img src="../../Content/images/9.jpg" class="charMark"  onMouseOver="this.src='../../Content/images/99.gif'" onMouseOut="this.src='../../Content/images/9.jpg'" /></td>
					</td>
				</tr>
			</table>
		</li>
		<li><img src="../../Content/images/b_fdz.jpg" width="75" height="73" /></li>
		<li style="width:170px;">
			<p style="padding-left:10px; padding-top:3px"><input id="txt_StartStation" type="text" style="height:25px" /><br /><input style="height:25px"  id="txt_EndStation" type="text" /></p>
		</li>
		<li>
		<input type="button" style="width:48px; height:61px; background:url(../../Content/images/btn2.jpg) no-repeat 0 0; margin-top:6px; cursor:pointer; border:0px" id="btn_searchTrainCommit" onclick="SearchStation()" />
		<%--<img src="../../Content/images/btn2.jpg" width="48" height="61" 
                style="margin-top:6px;"  />--%></li>
		<li style="width:15px;">　</li>
		<li><img src="../../Content/images/b_right.jpg" width="6" height="73" /></li>
	</ul>
</div>